import axios from "axios"


const Server = axios.create({
    baseURL: "http://backend-api-01.newbee.ltd/api/v1",
    timeout: 5000
})

Server.interceptors.request.use((config) => {
    config.headers.token = localStorage.getItem("token")
    console.log("前置拦节气");
    return config
}), error => {
    return Promise.reject(error)
}
Server.interceptors.response.use((config) => {
    return config
}), error => {
    return Promise.reject(error)
}
export {
    Server
}